<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      xterm-353
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-2020-04-02">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 2020-04-02
      </h4>
      <h3>
        Chapter&nbsp;24.&nbsp;X Window System Environment
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="twm.html" title="twm-1.0.10">Prev</a>
          <p>
            twm-1.0.10
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="xclock.html" title="xclock-1.0.9">Next</a>
          <p>
            xclock-1.0.9
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="installing.html" title=
          "Chapter&nbsp;24.&nbsp;X Window System Environment">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="xterm2" name="xterm2"></a>xterm-353
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to xterm
        </h2>
        <p>
          <span class="application">xterm</span> is a terminal emulator for
          the X Window System.
        </p>
        <p>
          This package is not a part of the Xorg katamari and is provided
          only as a dependency to other packages or for testing the completed
          Xorg installation.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "http://invisible-mirror.net/archives/xterm/xterm-353.tgz">http://invisible-mirror.net/archives/xterm/xterm-353.tgz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 247c30ebfa44623f3a2d100e0cae5c7f
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 1.3 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 13 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.2 SBU
              </p>
            </li>
          </ul>
        </div>
        <h3>
          xterm Dependencies
        </h3>
        <h4>
          Required
        </h4>
        <p class="required">
          <a class="xref" href="x7app.html" title="Xorg Applications">Xorg
          Applications</a>
        </p>
        <h4>
          Required (at runtime)
        </h4>
        <p class="required">
          A monospace TTF or OTF font such as <a class="xref" href=
          "TTF-and-OTF-fonts.html#dejavu-fonts" title="DejaVu fonts">Dejavu
          fonts</a>
        </p>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="../general/pcre.html" title=
          "PCRE-8.44">PCRE-8.44</a> or <a class="xref" href=
          "../general/pcre2.html" title="PCRE2-10.34">pcre2-10.34</a>,
          <a class="xref" href="../general/valgrind.html" title=
          "Valgrind-3.15.0">Valgrind-3.15.0</a> and <a class="ulink" href=
          "http://www.nongnu.org/man2html/">man2html</a>
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/Xterm">http://wiki.linuxfromscratch.org/blfs/wiki/Xterm</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of xterm
        </h2>
        <p>
          Install <span class="application">xterm</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">sed -i '/v0/{n;s/new:/new:kb=^?:/}' termcap &amp;&amp;
printf '\tkbs=\\177,\n' &gt;&gt; terminfo &amp;&amp;

TERMINFO=/usr/share/terminfo \
./configure $XORG_CONFIG     \
    --with-app-defaults=/etc/X11/app-defaults &amp;&amp;

make</kbd>
</pre>
        <p>
          This package does not come with a test suite.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install    &amp;&amp;
make install-ti &amp;&amp;

mkdir -pv /usr/share/applications &amp;&amp;
cp -v *.desktop /usr/share/applications/</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <span class="command"><strong>sed -i ... termcap</strong></span>,
          <span class="command"><strong>printf ... &gt;&gt;
          terminfo</strong></span>: These commands modify the terminal
          description so that the Backspace key is expected to send the
          character with ASCII code 127. This is done for consistency with
          the Linux console.
        </p>
        <p>
          <code class="envar">TERMINFO=/usr/share/terminfo</code>: This
          ensures that the <span class=
          "command"><strong>xterm</strong></span> terminfo files are
          installed to the system terminfo database.
        </p>
        <p>
          <em class="parameter"><code>--with-app-defaults=...</code></em>:
          Sets the location for the <code class=
          "filename">app-defaults</code> directory.
        </p>
        <p>
          <span class="command"><strong>make install-ti</strong></span>: This
          command installs corrected terminfo description files for use with
          <span class="application">xterm</span>.
        </p>
      </div>
      <div class="configuration" lang="en" xml:lang="en">
        <h2 class="sect2">
          Configuring xterm
        </h2>
        <p>
          There are two ways to configure xterm. You can add the X resource
          definitions to the user's <code class=
          "filename">~/.Xresources</code> file, or add them to the
          system-wide <code class=
          "filename">$XORG_PREFIX/share/X11/app-defaults/Xterm</code> file.
        </p>
        <p>
          In order for xterm to follow the locale settings in the
          environment, use TrueType fonts, and follow the Linux convention
          about the code sent by the Backspace key, add the following
          definitions as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">cat &gt;&gt; /etc/X11/app-defaults/XTerm &lt;&lt; "EOF"
<code class="literal">*VT100*locale: true
*VT100*faceName: Monospace
*VT100*faceSize: 10
*backarrowKeyIsErase: true
*ptyInitialErase: true</code>
EOF</kbd>
</pre>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">koi8rxterm, resize, uxterm, and
              xterm</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">None</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">None</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="koi8rxterm" name="koi8rxterm"></a><span class=
                    "term"><span class=
                    "command"><strong>koi8rxterm</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a wrapper script to set up xterm with a KOI8-R locale.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="resize" name="resize"></a><span class=
                    "term"><span class=
                    "command"><strong>resize</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    prints a shell command for setting the TERM and TERMCAP
                    environment variables to indicate the current size of
                    xterm window.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="uxterm" name="uxterm"></a><span class=
                    "term"><span class=
                    "command"><strong>uxterm</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a wrapper script that modifies the current locale to
                    use UTF-8 and starts xterm with the proper settings.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="xterm-bin" name="xterm-bin"></a><span class=
                    "term"><span class=
                    "command"><strong>xterm</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a terminal emulator for the X Window System.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-03-21 06:02:56 -0500
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="twm.html" title="twm-1.0.10">Prev</a>
          <p>
            twm-1.0.10
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="xclock.html" title="xclock-1.0.9">Next</a>
          <p>
            xclock-1.0.9
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="installing.html" title=
          "Chapter&nbsp;24.&nbsp;X Window System Environment">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 2020-04-02">
          Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
